package
{
import flash.display.Graphics;
import flash.display.Sprite;
import flash.events.MouseEvent;

public class TextTool extends HoleTool
{
	
	
	public function TextTool()
	{
		super();
		this.keyCode=84;
	}
	
	override public function upOnSpaceWithNoDrag():void{
		trace("create hole:"+canvas.selection.getLength());
		if(canvas.selection.getLength()!=0)return;
		var p:Object=canvas.mousePoint();
		p.r=10;

		//change here to add other things
		trace("addtext");
		canvas.addText(p,true);

	}

}

}

